package com.example.demo.mapper;

import com.example.demo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Mapper
public interface UserMapper {

//    @Select("select * from user_info where delete_flag=0 and user_name = #{userName}")
//    UserInfo queryByName(String userName);

    @Select("select * from user_info  where  delete_flag = 0 and user_name = #{userName} ")
    UserInfo queryByName(String userName);
}
